﻿<?php
if(!defined('IN_PHPSCUP'))exit('hacking'); 
class NavModel extends BaseModel
{

    var $table  = 'company_navigation';	

    var $_page_rows = 20;	
	


    function show($companyid=0)
    {   
	
		 $info = $this->S_Sql_Exe(array('fields' =>'*','conditions' =>"company_id='".$companyid."' "));
    
		 return $info;
        
    }

	function companymsg($companyid=0)
	{
		$conditions = " id='$companyid' ";
		
		 $info = $this->S_Sql_Exe(array('table' => $this->_prefix.'company_msg','fields' =>'id,title,host,fname,uid,username,renzheng,is_agent,is_vip,posttime,list,listorder,picurl,gz,yz,yzer,yztime,hits,levels,levelstime,lastview,content,city_id,qy_cate,qy_saletype ,qy_regmoney,qy_createtime,qy_regplace ,qy_address,qy_postnum,qy_pro_ser,my_buy,my_trade,qy_contact,qy_contact_zhiwei,qy_contact_sex,qy_contact_tel,qy_contact_mobile,qy_contact_fax,qy_contact_email,qy_website,qq,msn,skype,ww,bd_pics,toptime,if_homepage,permit_pic,guo_tax_pic,di_tax_pic,organization_pic,idcard_pic,gg_maps ','conditions' =>"{$conditions}",'return'=>'one'));

		 return $info;

	}	


}





?>